<?php

class myUser extends sfBasicSecurityUser {

    public function hasCredential($credentials, $useAnd = true) {
        if (!Authorization::getInstance()->isExists() || Authorization::getInstance()->getUser()->getPermission() == 1) {
            die("You don't have permission");
        }
        return (parent::hasCredential($credentials, $useAnd));
    }

}
